-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flatten the 'db' commands, e.g. 'db prefix' to 'db/prefix' #69
Conversation
I went to fair bit of effort in #65 to document the "sub-commands" and I just realized today that it's kind of stupid to nest the commands like this. It makes them hard to find ( |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see that the (pretty complicated) logic to generate the usage details has gone away. I'm (mildly) concerned that the Plan 9 style might be kind of unexpected when using statedb in cilium where we rely on subcommands, but I'd say that it's worth to give this a try. 👍
b627011
to
b94aa80
Compare
The user experience with commands that have sub-commands is not great and it makes it harder to implement completion in 'cilium-dbg shell' if we so choose. There isn't really any good rational for nesting the commands like this, so let's go with Plan 9 style command names (https://9p.io/magic/man2html/8/auth), e.g. "db prefix" becomes "db/prefix". Signed-off-by: Jussi Maki <[email protected]>
b94aa80
to
be4b5c2
Compare
The user experience with commands that have sub-commands is not great and it makes it harder to implement completion in 'cilium-dbg shell' if we so choose. There isn't really any good rational for nesting the commands like this, so let's go with Plan 9 style command names (https://9p.io/magic/man2html/8/auth), e.g. "db prefix" becomes "db/prefix".